fix: 桌面宠物全线可用 + Cursor CLI 适配 - #1
Merged
Merged
Conversation
Harden PTY lifecycle (stop, PID, writer, exit watch), ensure prompts always reach cursor-agent, parse current stream-json events, sync SessionManager so owned-CLI slots free, and surface honest approvals plus CLI probing in onboarding/settings. Co-authored-by: Leo <Nardo021@users.noreply.github.com>
Nardo021
marked this pull request as ready for review
July 14, 2026 21:36
Co-authored-by: Leo <Nardo021@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
让 Friday 桌面宠物在 Cursor 本地 CLI / Cloud 路径上真正可用:修复默认 PTY 生命周期、CLI 参数丢失 prompt、stream-json 解析过时、会话状态不同步,并补齐 onboarding/设置探测与诚实的高风险命令审批体验。
Key fixes
P0 — Cursor Local CLI 可靠性
wait()挂死)take_writer(){prompt};无占位符时自动追加 prompt,避免任务空跑system/init、assistant、tool_callstarted/completed、result),产出CommandCompleted等P1 — 可用性与 Cursor 适配 UX
Verification
cargo test --lib -- cursor_parser launcher→ 8 passednpm run build -w @friday/desktop→ tsc + vite OKnpm run build -w @friday/agent-core|bridge-client+ mobile typecheck → OKHow to try
cursor-agent并保证在 PATHnpm run tauri:devcrsr_(Cloud)